home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Sample.bin / jre.h < prev    next >
C/C++ Source or Header  |  1998-09-15  |  2KB  |  56 lines

  1. /*
  2.  * @(#)jre.h    1.8 98/07/01
  3.  *
  4.  * Copyright 1997, 1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  * 
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. /*
  16.  * Portable JRE support functions.
  17.  */
  18.  
  19. #include <stdio.h>
  20. #include <stdlib.h>
  21. #include <jni.h>
  22.  
  23. #include "jre_md.h"
  24.  
  25. /*
  26.  * Java runtime settings.
  27.  */
  28. typedef struct JRESettings {
  29.     char *javaHome;        /* Java home directory */
  30.     char *runtimeLib;        /* Runtime shared library or DLL */
  31.     char *classPath;        /* Default class path */
  32.     char *compiler;        /* Just-in-time (JIT) compiler */
  33.     char *majorVersion;        /* Major version of runtime */
  34.     char *minorVersion;        /* Minor version of runtime */
  35.     char *microVersion;        /* Micro version of runtime */
  36. } JRESettings;
  37.  
  38. /*
  39.  * JRE functions.
  40.  */
  41. void *JRE_LoadLibrary(const char *path);
  42. void  JRE_UnloadLibrary(void *handle);
  43. jint JRE_GetDefaultJavaVMInitArgs(void *handle, void *vmargsp);
  44. jint JRE_CreateJavaVM(void *handle, JavaVM **vmp, JNIEnv **envp,
  45.               void *vmargsp);
  46. jint JRE_GetCurrentSettings(JRESettings *set);
  47. jint JRE_GetSettings(JRESettings *set, const char *ver);
  48. jint JRE_GetDefaultSettings(JRESettings *set);
  49. jint JRE_ParseVersion(const char *version,
  50.               char **majorp, char **minorp, char **microp);
  51. char *JRE_MakeVersion(const char *major, const char *minor, const char *micro);
  52. void *JRE_Malloc(size_t size);
  53. void JRE_FatalError(JNIEnv *env, const char *msg);
  54. char *JRE_GetDefaultRuntimeLib(const char *dir);
  55. char *JRE_GetDefaultClassPath(const char *dir);
  56.